-- GENERATED SPELL FOR [Bloodmaul Mauler] --


function spell0_19993(pUnit, Event) --@Bloodmaul Buzz,Self--
pUnit:FullCastSpellOnTarget(34932,pUnit)
pUnit:RegisterEvent('Sorts_19993', 20312, 1)
end

function spell1_19993(pUnit, Event) --@Bloodmaul Rage,Self--
pUnit:FullCastSpellOnTarget(37786,pUnit)
pUnit:RegisterEvent('Sorts_19993', 9000, 1)
end

function spell2_19993(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(37592,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19993', 1000, 1)
end

function Sorts_19993(pUnit, Event)
local choix_sorts_19993 = math.random(0, 2)
if choix_sorts_19993 == 0 then
pUnit:RegisterEvent('spell0_19993', 1, 1)
end
if choix_sorts_19993 == 1 then
pUnit:RegisterEvent('spell1_19993', 1, 1)
end
if choix_sorts_19993 == 2 then
pUnit:RegisterEvent('spell2_19993', 1, 1)
end
end

function mob19993_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19993', math.random(1500, 3000), 1)
end

function mob19993_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19993_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19993_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19993, 1, 'mob19993_Action')
RegisterUnitEvent(19993, 2, 'mob19993_Leave')
RegisterUnitEvent(19993, 3, 'mob19993_Kill')
RegisterUnitEvent(19993, 4, 'mob19993_Die')
